!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("wixRecorder",[],t):"object"==typeof exports?exports.wixRecorder=t():e.wixRecorder=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://static.parastorage.com/services/wix-recorder/1.21.0/",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"addLabel",(function(){return K})),n.d(t,"withExperiments",(function(){return $})),n.d(t,"addCustomAttribute",(function(){return ee})),n.d(t,"recordUrl",(function(){return te})),n.d(t,"__forceRecording",(function(){return ne}));var r=function(){return window[window._fs_namespace]},o=function(){if(!!!r())throw Error("FullStory is not loaded, please ensure the init function is invoked before calling FullStory API functions")},i=function(){o();for(var e=arguments.length,t=new Array(e),n=0;n element)");else if(e.recordCrossDomainIFrames&&(window._fs_run_in_iframe=!0),e.recordOnlyThisIFrame&&(window._fs_is_outer_script=!0),function(e){var t,n,r,o,i,s,u,c,a=e.orgId,l=e.namespace,f=void 0===l?"FS":l,p=e.debug,d=void 0!==p&&p,h=e.host,y=void 0===h?"fullstory.com":h,v=e.script,w=void 0===v?"edge.fullstory.com/s/fs.js":v;if(!a)throw new Error("FullStory orgId is a required parameter");window._fs_debug=d,window._fs_host=y,window._fs_script=w,window._fs_org=a,window._fs_namespace=f,t=window,n=document,r=window._fs_namespace,o="script",i="user",r in t?t.console&&t.console.log&&t.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'):((u=t[r]=function(e,t,n){u.q?u.q.push([e,t,n]):u._api(e,t,n)}).q=[],(s=n.createElement(o)).async=1,s.crossOrigin="anonymous",s.src="https://"+_fs_script,(c=n.getElementsByTagName(o)[0]).parentNode.insertBefore(s,c),u.identify=function(e,t,n){u(i,{uid:e},n),t&&u(i,t,n)},u.setUserVars=function(e,t){u(i,e,t)},u.event=function(e,t,n){u("event",{n:e,p:t},n)},u.anonymize=function(){u.identify(!1)},u.shutdown=function(){u("rec",!1)},u.restart=function(){u("rec",!0)},u.log=function(e,t){u("log",[e,t])},u.consent=function(e){u("consent",!arguments.length||e)},u.identifyAccount=function(e,t){s="account",(t=t||{}).acctId=e,u(s,t)},u.clearUserCookie=function(){},u.setVars=function(e,t){u("setVars",[e,t])},u._w={},c="XMLHttpRequest",u._w[c]=t[c],c="fetch",u._w[c]=t[c],t[c]&&(t[c]=function(){return u._w[c].apply(this,arguments)}),u._v="1.3.0")}(e),t&&r()("observe",{type:"start",callback:t}),!0===e.devMode){var n="FullStory was initialized in devMode and will stop recording";u("FullStory Dev Mode",{message_str:n}),l(),window._fs_dev_mode=!0,console.warn(n)}}),"FullStory init has already been called once, additional invocations are ignored"));function p(){return{id:d("wixClient").split("|")[6]||d("_wixCIDX")}}function d(e){return(document.cookie.match(e+"=([^;]*)")||[""]).pop()}var h=function(){function e(){this.listeners=[],this.setupListeners()}return e.parseEventMessage=function(e){var t=("string"==typeof e?e:"").split("|");return{eventName:t[0],payload:t[1]}},e.prototype.setupListeners=function(){var t=this;window.addEventListener("message",(function(n){var r=e.parseEventMessage(n.data),o=r.eventName,i=r.payload;o&&t.listeners.filter((function(e){return e.name===o})).forEach((function(e){var r=e.name,o=e.callback,s=e.once;o(n,i),s&&t.removeListener(r,o)}))}))},e.prototype.listen=function(e,t){var n=this;return this.listeners.push({name:e,callback:t}),function(){n.removeListener(e,t)}},e.prototype.listenOnce=function(e,t){var n=this;return this.listeners.push({name:e,callback:t,once:!0}),function(){n.removeListener(e,t)}},e.prototype.removeListener=function(e,t){this.listeners=this.listeners.filter((function(n){return n.name!==e&&n.callback!==t}))},e.prototype.emit=function(e,t,n,r){void 0===t&&(t=""),void 0===n&&(n=window.parent),void 0===r&&(r="*"),n&&n.postMessage(e+"|"+t,r)},e}(),y=function(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var _;Object.create;!function(e){e.Default="",e.OwnerAccount="owner-account"}(_||(_={}));var g="__WIXEXP_USE_NEW_API",x="__WIXEXP_CONDUCTION_METHOD_",I="__WIXEXP_OWNER_ACCOUNT_ID_",O="__WIXEXP_LOGGED_IN_USER_ID_";function S(e,t,n){var r,o;if("undefined"!=typeof self)if("function"==typeof n){if(void 0!==n(self[t]))return(r={})[e]=n(self[t]),r}else if(typeof self[t]===n)return(o={})[e]=self[t],o;return{}}var U=function(e){return Object.keys(_).filter((function(t){return _[t]===e})).length>0?e:void 0};function R(e){return function(e){return e.conductionMethod===_.OwnerAccount&&e.siteOwnerId&&e.loggedInUserId}(e)?{forSiteOwner:{siteOwnerId:e.siteOwnerId,loggedInUserId:e.loggedInUserId}}:{}}var E=function(e){return"string"==typeof e&&""!==e};function C(e){void 0===e&&(e={});var t=e.forSiteOwner,n=e.forSiteVisitors,r=e.overrideCriteria,o="";if(["forSiteOwner","forSiteVisitors"].reduce((function(t,n){return e[n]?t+1:t}),0)>1)throw new Error('Only one of "forSiteOwner" or "forSiteVisitors" is accepted.');return t&&(o+=function(e){return E(e.loggedInUserId)&&E(e.siteOwnerId)?"&requestContext.forSiteOwner.loggedInUserId="+e.loggedInUserId+"&requestContext.forSiteOwner.siteOwnerId="+e.siteOwnerId:""}(t)),n&&(o+=function(e){return E(e.visitorId)&&E(e.siteOwnerId)?"&requestContext.forSiteVisitors.visitorId="+e.visitorId+"&requestContext.forSiteVisitors.siteOwnerId="+e.siteOwnerId:""}(n)),r&&(o+=function(e){return E(e.entityId)?"&requestContext.overrideCriteria.entityId="+e.entityId:""}(r)),o}function A(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}var L={conductAllInScope:"/_api/wix-laboratory-server/v1/laboratory/platform/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/v1/laboratory/platform/conductExperiment"},P={conductAllInScope:"/_api/wix-laboratory-server/laboratory/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/laboratory/conductExperiment"};function F(e,t){return-1!==e.indexOf(t?L.conductAllInScope:P.conductAllInScope)}var k=function(e,t,n){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n=!1),n?L.conductExperiment+"?key="+encodeURIComponent(e)+"&fallbackValue="+encodeURIComponent(t):P.conductExperiment+"?key="+encodeURIComponent(e)+"&fallback="+encodeURIComponent(t)};function N(e,t,n){var r=""+k(t,"",n);return e.includes(r)}var T=function(){function e(){this.urlMap=new Map,this.pendingUrlMap=new Map}return e.prototype.addUrlRequest=function(e,t){return w(this,void 0,void 0,(function(){var n=this;return m(this,(function(r){switch(r.label){case 0:return this.pendingUrlMap.set(e,t),[4,t.then((function(t){return n.addUrlResponse(e,t)}))];case 1:return r.sent(),[2]}}))}))},e.prototype.addUrlResponse=function(e,t){this.urlMap.set(e,t)},e.prototype.getUrlResponse=function(e){return this.urlMap.get(e)},e.prototype.getUrlRequest=function(e){return this.pendingUrlMap.get(e)},e.prototype.getExperimentValue=function(e,t){var n,r;try{for(var o=b(this.urlMap.keys()),i=o.next();!i.done;i=o.next()){var s=i.value;if(N(s,e,t))return this.urlMap.get(s);if(F(s,t)){var u=A(this.urlMap.get(s));if("object"==typeof u&&e in u)return u[e]}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e}();!function(){function e(){}e.prototype.addUrlRequest=function(){},e.prototype.addUrlResponse=function(){},e.prototype.getUrlResponse=function(){},e.prototype.getUrlRequest=function(){},e.prototype.getExperimentValue=function(){}}();function M(){return void 0===self.experimentsCacheV2&&(self.experimentsCacheV2=new T),self.experimentsCacheV2}var j=function(){function e(e){var t;this.experiments=null!==(t=e.experiments)&&void 0!==t?t:{}}return e.prototype.get=function(e){return this.experiments[e]},e.prototype.enabled=function(e){return"true"===this.get(e)},e.prototype.pending=function(){return!1},e.prototype.ready=function(){return Promise.resolve()},e.prototype.all=function(){return this.experiments},e}(),q=function(){},X=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,r=v(v(v(v({},S("useNewApi",g,"boolean")),S("conductionMethod",x,U)),S("siteOwnerId",I,"string")),S("loggedInUserId",O,"string"));return n.useNewApi=void 0!==t.useNewApi?t.useNewApi:r.useNewApi||!1,n.experiments=t.experiments||{},n.loaders=new Map,n.baseUrl=(n.useNewApi,t.baseUrl||""),n.requestContext=t.requestContext||R(r),n.onError=t.onError||q,t.scope&&n.load(t.scope),t.scopes&&t.scopes.forEach(n.load.bind(n)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.add=function(e){this.experiments=v(v({},this.experiments),e)},t.prototype._addLoader=function(e,t){var n=this;return this.loaders.set(e,t),t.then((function(){n.loaders.delete(e)})),t},t.prototype._getUrlWithFallback=function(e,t){var n=this,r=M().getUrlResponse(e);if(void 0!==r)return Promise.resolve(r);var o=M().getUrlRequest(e);if(void 0!==o)return o;var i=this.loaders.get(e);if(void 0!==i)return i;var s=function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="text",r.withCredentials=!0,r.onload=function(){r.status>=200&&r.status<400?t(r.responseText):n(new Error("Failed to load "+e+", status "+r.status))},r.onerror=function(){return n(new Error("Failed to load "+e))},r.send()}))}(e);return M().addUrlRequest(e,s),s.catch((function(e){return n.onError(e),t}))},t.prototype.load=function(e){var t=this,n=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),t?L.conductAllInScope+"?scope="+encodeURIComponent(e):P.conductAllInScope+"?scope="+encodeURIComponent(e)}(e,this.useNewApi),r=this.useNewApi?C(this.requestContext):"",o=""+this.baseUrl+n+r,i=this._getUrlWithFallback(o,"{}").then((function(e){return A(e)})).then((function(e){return t.useNewApi?e.values:e})).then((function(e){return t.add(e),e}));return this._addLoader(o,i)},t.prototype.conduct=function(e,t){var n=this,r=M().getExperimentValue(e,this.useNewApi);if(void 0!==r)return this._addConductResult(e,r);var o=k(e,t,this.useNewApi),i=this.useNewApi?C(this.requestContext):"",s=""+this.baseUrl+o+i,u=this._getUrlWithFallback(s,null!=t?t:"").then((function(t){return n._addConductResult(e,t)}));return this._addLoader(s,u)},t.prototype.pending=function(){return!!this.loaders.size},t.prototype.ready=function(){return Promise.all(Array.from(this.loaders.values()))},t.prototype._addConductResult=function(e,t){var n,r=this.useNewApi?JSON.parse(t).value:t;return this.add(((n={})[e]=r,n)),Promise.resolve(r)},t}(j),V=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,u)}c((r=r.apply(e,t||[])).next())}))},W=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]20&&this.eventsQueue.shift())},e.prototype.shouldTopFrameRecord=function(){return Y(this,void 0,Promise,(function(){return z(this,(function(e){return-1!==window.location.toString().indexOf("alwaysgb")||this.sample()?[2,!0]:window===window.top?[2,this.options.smallApp?this.conductSmallAppExperiment():D("specs.fedinfra.Glassbox")]:[2,!1]}))}))},e.prototype.sample=function(){var e=this.options.sample;return e&&Math.random()0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]